package webapp.mvc.utils;

import org.springframework.security.crypto.bcrypt.BCrypt;

public class EncryptUtil {
    public static String encryptPassword(String password) {
        return BCrypt.hashpw(password, BCrypt.gensalt());
    }
    public static boolean checkPassword(String passwordCrypted, String password) {
        return BCrypt.checkpw(password, passwordCrypted);
    }
}
